package Chinese.Education.Identify.mapper;

import Chinese.Education.Identify.pojo.StudentCourse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface StudentCourseMapper {

    void insertBatch(@Param("list") List<StudentCourse> studentCourses);

    List<StudentCourse> findByStudentId(@Param("studentId") String studentId);

    List<StudentCourse> findByTeacherId(@Param("teacherId") String teacherId);

    void updateScores(StudentCourse studentCourse);

    void deleleByStuId(@Param("studentId") String studentId);

    List<StudentCourse> searchStudentCourses(@Param("studentId") String studentId, @Param("courseId") String courseId, @Param("semester") String semester);
}
